﻿<?
function no_title($str) {
$string = array(
'e' => array('ế','ề','ể','ễ','ệ','Ế','Ề','� ��','Ễ','Ệ','é','è','ẻ','ẽ','ẹ','ê',' É','È','Ẻ','Ẽ','Ẹ','Ê'),
'y' => array('ý','ỳ','ỷ','ỹ','ỵ','Ý','Ỳ','Ỷ ','Ỹ','Ỵ'),
'u' => array('ứ','ừ','ử','ữ','ự','Ứ','Ừ','� ��','Ữ','Ự','ú','ù','ủ','ũ','ụ','ư','� �','Ù','Ủ','Ũ','Ụ','Ư'),
'i' => array('í','ì','ỉ','ĩ','ị','Í','Ì','Ỉ',' Ĩ','Ị'),
'o' => array('ố','ồ','ổ','ỗ','ộ','Ố','Ồ','� ��','Ô','Ộ','ớ','ờ','ở','ỡ','ợ','Ớ' ,'Ờ','Ở','Ỡ','Ợ','ó','ò','ỏ','õ','ọ','ô','ơ','Ó', 'Ò','Ỏ','Õ','Ọ','Ô','Ơ'),
'a' => array('ấ','ầ','ẩ','ẫ','ậ','Ấ','Ầ','� ��','Ẫ','Ậ','ắ','ằ','ẳ','ẵ','ặ','Ắ ','Ằ','Ẳ','Ẵ','Ặ','á','à','ả','ã','ạ','â','ă','Á','À','Ả','Ã', 'Ạ','Â','Ă'),
'd' => array('đ','Đ'),
);
foreach ($string as $key => $arr)
foreach ($arr as $val)
$str = str_replace($val,$key,$str);
return $str;
}
?>